mudbox::SurfaceSmoother Class Reference
#include <mesh.h>
Inheritance diagram for mudbox::SurfaceSmoother:
[legend]
List of all
members.
Detailed Description
This is an interface for a SurfaceSmoother object,
which is responsible to provide information about the limit surface
of a mesh.
Mudbox uses this object to obtain information about the limit
surface without actually calculating additional subdivision levels
for the meshes. This limit surface is used during map extraction.
If you need to control the algorithm by which this limit surface is
calculated, you can override this class in a plug-in, and replace
Mudbox's version, which is in the plugin called
"CCSurfaceSmoother". To create your own:
1. Write a plug-in that defines your own class derived from
SurfaceSmoother.
2. Delete the existing CCSurfaceSmoother plugin, and copy yours
into the plug-in folder.
On OSX, this plugin is found in the Mudbox 2009 package, under
Contents>MacOS>plugins. On the PC, it is found in the
work dir folder, under "plugins"
Member Function Documentation
virtual const mudbox::ClassDesc*
mudbox::SurfaceSmoother::RuntimeClass |
( |
void |
|
) |
const [inline,
virtual] |
|
mudbox::Node*
mudbox::SurfaceSmoother::CreateInstances |
( |
unsigned int |
iCount =
1 |
) |
[static] |
|
virtual Vector
mudbox::SurfaceSmoother::SmoothPosition |
( |
unsigned int |
iFaceIndex, |
|
|
double |
fUCoordinate, |
|
|
double |
fVCoordinate |
|
) |
const [virtual] |
|
|
This function must return the position of a point on the
surface.
- Parameters:
-
iFaceIndex |
[in] Index of the face which contains the surface point |
fUCoordinate |
[in] Location in U direction of the point inside the face (must
be within 0-1) |
fVCoordinate |
[in] Location in V direction of the point inside the face (must
be within 0-1) |
|
virtual Vector
mudbox::SurfaceSmoother::SmoothNormal |
( |
unsigned int |
iFaceIndex, |
|
|
double |
fUCoordinate, |
|
|
double |
fVCoordinate |
|
) |
const [virtual] |
|
|
This function must return the surface nomal of a point on the
surface.
- Parameters:
-
iFaceIndex |
[in] Index of the face which contains the surface point |
fUCoordinate |
[in] Location in U direction of the point inside the face (must
be within 0-1) |
fVCoordinate |
[in] Location in V direction of the point inside the face (must
be within 0-1) |
|
virtual Vector
mudbox::SurfaceSmoother::SmoothTextureCoordinate |
( |
unsigned int |
iFaceIndex, |
|
|
double |
fUCoordinate, |
|
|
double |
fVCoordinate |
|
) |
const [virtual] |
|
|
This function must return the smoothed texture coordinate on the
surface.
- Parameters:
-
iFaceIndex |
[in] Index of the face which contains the surface point |
fUCoordinate |
[in] Location in U direction of the point inside the face (must
be within 0-1) |
fVCoordinate |
[in] Location in V direction of the point inside the face (must
be within 0-1) |
|
mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother
mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother mudbox::SurfaceSmoother
mudbox::SurfaceSmoother